﻿using Model.Request;
using Model.Response;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public class UsersBLL
    {
        private Dal.UsersDAL dal = new Dal.UsersDAL();
        public ResUserInfo Login(LoginRequest model)
        {
            return dal.Login(model);
        }

        /// <summary>
        /// 修改用户密码
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public bool ChangePassword(ChangePaswordRequest request)
        {
            return dal.ChangePassword(request);
        }


        /// <summary>
        /// 修改联系方式
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public bool AppAddressListUpdateSelf(AppAddressListUpdateSelfRequest request)
        {
            return dal.AppAddressListUpdateSelf(request);
        }


        /// <summary>
        /// 添加联系方式
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public bool AppAddressListInsert(AppAddressListInsertRequest request)
        {
            return dal.AppAddressListInsert(request);
        }

    }
}
